package com.market.service.impl;

import com.market.entity.SortRecord;
import com.market.mapper.SortRecordMapper;
import com.market.service.OrderService;
import com.market.service.SortRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class SortRecordServiceImpl implements SortRecordService {
    @Autowired
    private SortRecordMapper sortRecordMapper;


    @Override
    public boolean addSortRecord(SortRecord sortRecord) {

        return sortRecordMapper.insertSortRecord(sortRecord)==1;

    }


    @Override
    public List<SortRecord> daySortRecord(String date) {
        List<SortRecord> daySortRecord = sortRecordMapper.findDaySortRecord(date);
        return daySortRecord;
    }
}
